package com.wf.articleManagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wf.apicommons.entity.articleManagement.ArticleDetails;
import org.springframework.stereotype.Repository;

import java.util.Map;


/**
 * @Description: 文章详情
 */
@Repository
public interface ArticleDetailsMapper extends BaseMapper<ArticleDetails> {
    /**
     * 查询指定文章详情
     * @param articleId 文章ID
     * @return
     */
    Map<String,Object> queryBlogDetails(String articleId);

    /**
     * 添加文章
     * @param articleDetails
     * @return
     */
    int insertBlogDetails(ArticleDetails articleDetails);


    /**
     * 修改文章
     * @param articleDetails
     * @return
     */
    int updateBlogDetails(ArticleDetails articleDetails);
}
